if stock.cards[i].rank = foundation[makesymbol(spriteNum)].getlastcard().rank then
if stock.cards[i].suit = foundation[makesymbol(spriteNum)].getlastcard().suit then
stock.cards.deleteAt(i)
end if
end if
end repeat
end
on mouseEnter me
if the clickOn <> 0 then
if (sprite(the clickOn).loc = the mouseLoc) and (the clickOn <> spriteNum) then
if (getlist(the clickOn).rankvalue = (foundation[makesymbol(spriteNum)].getlastcard().rankvalue + 1)) and (getlist(the clickOn).suit = foundation[makesymbol(spriteNum)].getlastcard().suit) then
equal = 1
currentselect = spriteNum
else
if (getlist(the clickOn).rank = "ace") and (foundation[makesymbol(spriteNum)].getlastcard().rank = "king") and (getlist(the clickOn).suit = foundation[makesymbol(spriteNum)].getlastcard().suit) then